<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <center>
 <div id="app">
        <h1>用户列表</h1>
        <table border="1" cellspacing="0">
            <thead>
                <tr>
                    <td>用户编号</td>
                    <td>姓名</td>
                    <td>email</td>
                    <td>总需要数量</td>
                    <td>待处理数量</td>
                    <td>未处理数量</td>
                    <td>
                        <a href="#">添加</a>
                    </td>
                </tr>
              </thead>
              <tbody>
                  <tr v-for="l in list">
                      <td>{{l.id}}</td>
                      <td>{{l.name}}</td>
                      <td>{{l.email}}</td>
                      <td>{{l.total}}</td>
                      <td>{{l.undeal}}</td>
                      <td>{{l.deal}}</td>
                      <td>
                          <a href="#" >删除</a>
                          <a href="#" >修改</a>
                      </td>
                  </tr>
              </tbody>
        </table>

    </div>
    

    </center>
   
</body>

<script type="text/javascript" src="static/js/vue.min.js"></script>
<script type="text/javascript" src="static/js/axios.min.js"></script>
<script>
    new Vue({
        el:'#app',
        data:{
            list:[]

        },
        methods: {
            getData() {
                axios.get('http://localhost:8083/user').then((res)=>{
                    this.list=res.data;

                   console.log( res.data) 
                })
                
            },
        },
        created() {
            this.getData();
        },
        
    })
</script>
</html>